<!DOCTYPE html>
<html>
    <script type="text/javascript"> 
        var fullname = "Jhon Doe";
        var obj = {
            fullname:'Colin Ihrig',
            prop:{
                fullname:'Aurelio De Rosa',
                getFullname:function(){
                    return this.fullname;
                }
            }
        };
        console.log(obj.prop.getFullname());//函数的最终调用者 obj.prop
        var test = obj.prop.getFullname;
        console.log(test());     //函数的最终调用者test() this-->window


        obj.func = obj.prop.getFullname;//给obj追加方法
        console.log(obj.func());//函数最终调用者是obj
        var arr = [obj.prop.getFullname,1,2];
        arr.fullname="JREDU";
        console.log(arr[0]());//函数最终调用者数组
    </script>
</html>